package org.webequa.websolve.services.generic;

import java.util.Map;

import org.mathcloud.everest.Job;
import org.mathcloud.everest.adapter.java.JavaServiceI;
import org.webequa.plotting.maple.MaplePlot;

public class SimplePlottingService implements JavaServiceI {

	@Override
	public void destroy() {
	}

	@Override
	public void init(Map<String, String> arg0) {
	}

	@Override
	public void run(Job arg0) throws Exception {
		MaplePlot maplePlot = new MaplePlot();
		maplePlot.plotData(arg0.getDir() + "/input.data",arg0.getDir() + "/output.bmp");
	}

}
